//
//  Record_Plays.m
//  __PRODUCTNAME__
//
//  Created by 曹曹 on 16/09/01
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "Record_Plays.h"
#import "ProgramBanners.h"
#import "Play_time_week.h"
#import "Record.h"
#import "Record_dj_info.h"

@implementation Record_Plays

+ (NSDictionary *)objectClassInArray{
    return @{@"banners" : [ProgramBanners class]};
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"banners"]) {
        _banners = [self arrayWithClass:[ProgramBanners class] value:value];
    }
    if ([key isEqualToString:@"play_time_week"]) {
        _play_time_week = [NSArray arrayWithArray:value];
    }
    if ([key isEqualToString:@"record"]) {
        _record = [self arrayWithClass:[Record class] value:value];
    }
    if ([key isEqualToString:@"record_dj_info"]) {
        _record_dj_info = [self arrayWithClass:[Record_dj_info class] value:value];
    }
}

@end
